import json
import frappe


@frappe.whitelist()
def reopen_work_order(name):
  wo = frappe.get_doc("Work Order", name)
  wo.update_status('In Process')
  wo.save()